package pl.net.csrv.beans;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Maciek
 *
 */
@Entity
@Table(name = "Tools")
public class Tool {

	/**
	 * Id
	 */
	@Id
	@Column(name="ID")
	private Long id;

	/**
	 * Name
	 */
	@Column(name="NAME")
	private String name;

	/**
	 * Model
	 */
	@Column(name="MODEL")
	private String model;

	/**
	 * Price
	 */
	@Column(name="PRICE")
	private BigDecimal price;

	/**
	 * Comment
	 */
	@Column(name="T_COMMENT")
	private String comment;

	/**
	 * Gets the id
	 * @return the id Long
	 */
	public Long getId() {
		return id;
	}

	/**
	 * Sets the id
	 * @param id the id Long to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * Gets the name
	 * @return the name String
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name
	 * @param name the name String to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Gets the model
	 * @return the model String
	 */
	public String getModel() {
		return model;
	}

	/**
	 * Sets the model
	 * @param model the model String to set
	 */
	public void setModel(String model) {
		this.model = model;
	}

	/**
	 * Gets the prive
	 * @return the price BigDecimal
	 */
	public BigDecimal getPrice() {
		return price;
	}

	/**
	 * Sets the price
	 * @param price the price BigDecimal to set
	 */
	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	/**
	 * Gets the comment
	 * @return the comment String
	 */
	public String getComment() {
		return comment;
	}

	/**
	 * Sets the comment
	 * @param comment the comment String to set
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}
}
